<?php
	// Jika sudah login
	if (isset($_SESSION['IdKaryawan']) && isset($_SESSION['Level']) == "Karyawan")
	{
		
		if ($_SESSION['Level'] == "HRD")
		{
			echo "<a href = 'index.php?Content=Home'"; if($_GET['Content']=='Home') {echo "id='current'";} echo"> Home </a>";
			echo "<a href = 'index.php?Content=SuratCutiSaya&Halaman=1&Tahun=ALL'"; if($_GET['Content']=='SuratCutiSaya') {echo "id='current'";} echo"> Surat Cuti Saya </a>";
			echo "<a href = 'index.php?Content=PengesahanSurat'"; if($_GET['Content']=='PengesahanSurat') {echo "id='current'";} echo"> Pengesahan Surat </a>";
			echo "<a href = 'index.php?Content=CutiBersama'"; if($_GET['Content']=='CutiBersama') {echo "id='current'";} echo"> Cuti Bersama </a>";
			echo "<a href = 'index.php?Content=PenolakanCutiBersama'"; if($_GET['Content']=='PenolakanCutiBersama') {echo "id='current'";} echo"> Penolakan Cuti Bersama </a>";
			echo "<a href = 'index.php?Content=CutiKhusus'"; if($_GET['Content']=='CutiKhusus') {echo "id='current'";} echo"> Cuti Khusus </a>";
			echo "<a href = 'index.php?Content=DataKaryawan'"; if($_GET['Content']=='DataKaryawan') {echo "id='current'";} echo"> Data Karyawan </a>";
			echo "<a href = 'index.php?Content=SuratCuti&Halaman=1&Tlc=ALL&Tahun=ALL&Cari=Ok'"; if($_GET['Content']=='SuratCuti') {echo "id='current'";} echo"> Surat Cuti </a>";
			echo "<a href = 'index.php?Content=Setting'"; if($_GET['Content']=='Setting') {echo "id='current'";} echo"> Setting </a>";
			echo "<a href = 'index.php?Content=update'"; if($_GET['Content']=='Update') {echo "id='current'";} echo"> Update Log </a>";
			
			echo "<a href = 'logout.php'> Logout </a>";
		}
		else if ($_SESSION['Level'] == "Direktur")
		{
			echo "<a href = 'index.php?Content=Home'"; if($_GET['Content']=='Home') {echo "id='current'";} echo"> Home </a>";
			echo "<a href = 'index.php?Content=SuratCutiSaya&Halaman=1&Tahun=ALL'"; if($_GET['Content']=='SuratCutiSaya') {echo "id='current'";} echo"> Surat Cuti Saya </a>";
			echo "<a href = 'index.php?Content=PengesahanSurat'"; if($_GET['Content']=='PengesahanSurat') {echo "id='current'";} echo"> Pengesahan Surat </a>";
			echo "<a href = 'index.php?Content=Setting'"; if($_GET['Content']=='Setting') {echo "id='current'";} echo"> Setting </a>";
			echo "<a href = 'logout.php'> Logout </a>";
		}
		else if	($_SESSION['Level'] == "Karyawan")
		{
			echo "<a href = 'index.php?Content=Home'"; if($_GET['Content']=='Home') {echo "id='current'";} echo"> Home </a>";
			echo "<a href = 'index.php?Content=SuratCutiSaya&Halaman=1&Tahun=ALL'"; if($_GET['Content']=='SuratCutiSaya') {echo "id='current'";} echo"> Surat Cuti Saya </a>";
			echo "<a href = 'index.php?Content=Setting'"; if($_GET['Content']=='Setting') {echo "id='current'";} echo"> Setting </a>";
			echo "<a href = 'logout.php'> Logout </a>";
		}
	}	
	// Jika belum Login
	else	
	{
	
	}
?>

